package com.ruoyi.travel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.travel.mapper.FoodDetailMapper;
import com.ruoyi.travel.domain.FoodDetail;
import com.ruoyi.travel.service.IFoodDetailService;

/**
 * 特色美食Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-07
 */
@Service
public class FoodDetailServiceImpl implements IFoodDetailService 
{
    @Autowired
    private FoodDetailMapper foodDetailMapper;

    /**
     * 查询特色美食
     * 
     * @param id 特色美食主键
     * @return 特色美食
     */
    @Override
    public FoodDetail selectFoodDetailById(Long id)
    {
        return foodDetailMapper.selectFoodDetailById(id);
    }

    /**
     * 查询特色美食列表
     * 
     * @param foodDetail 特色美食
     * @return 特色美食
     */
    @Override
    public List<FoodDetail> selectFoodDetailList(FoodDetail foodDetail)
    {
        return foodDetailMapper.selectFoodDetailList(foodDetail);
    }

    /**
     * 新增特色美食
     * 
     * @param foodDetail 特色美食
     * @return 结果
     */
    @Override
    public int insertFoodDetail(FoodDetail foodDetail)
    {
        return foodDetailMapper.insertFoodDetail(foodDetail);
    }

    /**
     * 修改特色美食
     * 
     * @param foodDetail 特色美食
     * @return 结果
     */
    @Override
    public int updateFoodDetail(FoodDetail foodDetail)
    {
        return foodDetailMapper.updateFoodDetail(foodDetail);
    }

    /**
     * 批量删除特色美食
     * 
     * @param ids 需要删除的特色美食主键
     * @return 结果
     */
    @Override
    public int deleteFoodDetailByIds(Long[] ids)
    {
        return foodDetailMapper.deleteFoodDetailByIds(ids);
    }

    /**
     * 删除特色美食信息
     * 
     * @param id 特色美食主键
     * @return 结果
     */
    @Override
    public int deleteFoodDetailById(Long id)
    {
        return foodDetailMapper.deleteFoodDetailById(id);
    }
}
